/* addemup.c -- five kinds of statements */

#include <stdio.h>

int main(void) { /* finds sum of first 20 integers */

    int count, sum, guests; /* declaration statement */

    count = 0; /* assignment statement */

    sum = 0; /* ditto */

    guests = 0;

    while (count++ < 20) { /* while */

        sum = sum + count; /* statement */
    }

    printf("sum = %d\n", sum);/* function statement */

    while(guests++ < 10){
        printf("%d \n", guests);
    }
    return 0; /* return statement */
}